﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_skin")]
    [Serializable]
    public class Skin : ObjectBase<Skin>
    {

        public Skin() { }

        public Skin(String name, String code, Int32 lockin, Int32 isclass, DateTime addtime)
        {
            this.name = name;
            this.code = code;
            this.lockin = lockin;
            this.isclass = isclass;
            this.addtime = addtime;
            this.insert();
        }

        [Default(""), NotNull(""), Column(Length = 50)]
        public String name { get; set; }

        [Default(""), NotNull(""), Column(Length = 20)]
        public String code { get; set; }

        [TinyInt, Default(0), NotNull(""), Column(Length = 1)]
        public Int32 lockin { get; set; }

        [TinyInt, Default(0), NotNull(""), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

    }
}
